package com.ktjy.iotorder.service;


import com.ktjy.pojo.DeviceData;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "iot-product")
public interface OrderClient {

    //http://微服务名称/product/{id}
    @GetMapping("/product/{id}")
    public DeviceData getProduct(@PathVariable int id);
}
